package com.terry.processtest.myprocess.node;

import com.ehome.manage.module.utils.process.node.NodeResult;
import com.ehome.manage.module.utils.process.node.ProcessNode;
import com.terry.processtest.myprocess.MyTestContext;
import org.springframework.stereotype.Component;

/**
 * @author tanlvxu
 * @version 1.0
 * @information
 * @date 2021/11/13 11:32
 *
 */
@Component
public class Node1 implements ProcessNode<MyTestContext> {

    @Override
    public String getName() {
        return "流程1";
    }

    @Override
    public NodeResult execute(MyTestContext context) {
        System.out.println("完成流程1");
        return NodeResult.next(MyTestNodeProcessNames.PROCESS_2);
    }

}
